home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form MainForm
- Caption = "Index"
- ClientHeight = 5700
- ClientLeft = 435
- ClientTop = 1515
- ClientWidth = 8025
- Height = 6105
- Left = 375
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- ScaleHeight = 5700
- ScaleWidth = 8025
- Top = 1170
- Width = 8145
- Begin CommandButton ListGoto
- Caption = "Goto"
- Height = 465
- Left = 4050
- TabIndex = 6
- Top = 5100
- Width = 3765
- End
- Begin CommandButton FOpen
- Caption = "Open"
- Height = 465
- Left = 150
- TabIndex = 3
- Top = 5100
- Width = 3615
- End
- Begin FileListBox File1
- Height = 1980
- Left = 150
- Pattern = "*.hyp"
- TabIndex = 2
- Top = 2850
- Width = 3615
- End
- Begin ListBox List1
- Height = 3735
- Left = 4050
- Sorted = -1 'True
- TabIndex = 5
- Top = 900
- Width = 3765
- End
- Begin DirListBox Dir1
- Height = 1815
- Left = 150
- TabIndex = 1
- Top = 750
- Width = 3615
- End
- Begin DriveListBox Drive1
- Height = 360
- Left = 150
- TabIndex = 0
- Top = 150
- Width = 3615
- End
- Begin Label HyperName
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 13.5
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 615
- Left = 4050
- TabIndex = 4
- Top = 150
- Width = 3765
- End
- Sub Check1_Click ()
- End Sub
- Sub Dir1_Change ()
- File1.Path = Dir1.Path
- File1.SetFocus
- If File1.ListCount Then
- File1.ListIndex = 0
- End If
- End Sub
- Sub Drive1_Change ()
- Dir1.Path = Drive1.Drive
- End Sub
- Sub File1_DblClick ()
- FOpen_Click
- End Sub
- Sub FOpen_Click ()
- ChDrive Drive1.Drive
- ChDir File1.Path
- Open File1.FileName For Input As #1
- Line Input #1, HName$
- HyperName.caption = HName$
- 'make sure list is empty in case the one we're
- 'loading isn't the first.
- Do While List1.ListCount
- List1.RemoveItem 0
- Loop
- On Error GoTo BadData
- c = 0
- c = c + 1
- NUMTOPICS = c
- Line Input #1, TOPIC$(c)
- List1.AddItem TOPIC$(c)
- Line Input #1, KW$
- CC = 0
- Do While KW$ <> Chr$(34)' a quote
- CC = CC + 1
- KEYWORD$(c, CC) = KW$
- Line Input #1, KW$
- Loop
- Line Input #1, Txt$
- TOPTEXT$(c) = ""
- Do While Txt$ <> Chr$(34)' a quote
- TOPTEXT$(c) = TOPTEXT$(c) + Txt$ + Chr$(13) + Chr$(10)
- Line Input #1, Txt$
- Loop
- Loop Until EOF(1)
- Close #1
- On Error Resume Next
- Exit Sub
- BadData:
- Rpt$ = "Error at or before Topic" + Str$(c) + " (" + TOPIC$(c) + ")"
- MsgBox Rpt$, 16, ".HYP File Format Error"
- End Sub
- Sub Form_Unload (Cancel As Integer)
- End Sub
- Sub List1_DblClick ()
- ListGoto_Click
- End Sub
- Sub ListGoto_Click ()
- For c = 1 To NUMTOPICS
- If TOPIC$(c) = List1.text Then
- BackNdx = 0
- BackUp(BackNdx + 1) = c
- cardform.Show
- cardform.label1.caption = TOPIC$(c)
- cardform.text1.text = TOPTEXT$(c)
- cardform.text1.selstart = 64000'end of text
- mainform.Hide
- End If
- Next
- End Sub
-